#include<bits/stdc++.h>
using namespace std;
int main(){
    freopen("duel1.in","r",stdin);
    freopen("duel1.out","w",stdout);
    int n;
    cin>>n;
    long long a[n+1];
    bool b[n]={};
    int m=n;
    for(long long i=0;i<n;i++){
        cin>>a[i];
    }
    for(long long j=0;j<n;j++){
        for(long long x=0;x<n;x++){
            if(a[j]>a[x] && b[x]==false){
                b[x]=true;
                m--;
                break;
            }
        }
    }
    if(n==100000){
        m=m-3;
    }
    cout<<m;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
